Einhugur macOS Bridge plugin.

NSWorkspace.URLForApplicationToOpenURL Method

URLForApplicationToOpenURL

shared URLForApplicationToOpenURL(
   url as EinhugurCoreBridge.NSURL) as EinhugurCoreBridge.NSURL

Parameters

url
The URL of the file to open.

Returns

EinhugurCoreBridge.NSURL
The URL of the default app that would open the specified url. Returns nil if no app is able to open the URL, or if the file URL does not exist.

Remarks

This method is the programmatic equivalent of double-clicking a document in the Finder.

You can safely call this method from any thread of your app.

See Also

NSWorkspace Class